#include <iostream>
using namespace std;
class Circle{
protected:
    double radius;
    double pi = 3.1415926535;
public:
    Circle(double r){
        radius = r;
    }
};

class Cylinder :public Circle{
protected:
    double height;
public:
    Cylinder(double r, double h):Circle(r){
        height = h;
    }
    double getSurfaceArea(){
        return 2*pi*radius*height+2*pi*radius*radius;
    }
    double getVolume(){
        return pi*radius*radius*height;
    }
};

int main(){
    Cylinder c(10,10);
    cout<<"表面积："<<endl;
    cout << c.getSurfaceArea() << endl;
    cout<<"体积："<<endl;
    cout << c.getVolume() << endl;
    return 0;
}